<?php
class Language extends CWidget{
	
	protected $url = 'site/change';
	
	public function run(){
		echo '<span><a href="' , Yii::app()->controller->createUrl( $this->url , array( 'language' => 'EN' ) ) , '"><img src="images/en.jpg" width="15" border="0" />English</a></span>
			  <span><a href="' , Yii::app()->controller->createUrl( $this->url , array( 'language' => 'ZH' ) ) , '"><img src="images/cn.jpg" width="15" border="0" />中文版</a></span>';
	}
}